BINOM

Syntax: BINOM (n,k)
Location: Math Package

The function BINOM returns the value of the binomial coefficient which is defined as the following (where n >= k):

n * (n - 1) * (n - 2) * ... * (n - k + 1) ) / ( 1 * 2 * ... * k )

or, 
FACT(n) / ( FACT(k) * FACT(n-k)

Example:
The following program calculates 2n:

100 n=10: s=0
110 FOR k=0 TO n: s=s+BINOM(n,k)
120 PRINT s,2^n

CROSS-REFERENCE:
FACT
